// this file is used to handle the slice of userId
import {createSlice} from '@reduxjs/toolkit';

export const changeLanguageSlice = createSlice({
  name: 'changeLanguageSlice',
  initialState: {
    visible: false, // 是否显示
  },
  reducers: {
    setVisible: (state, action) => {
      state.visible = action.payload;
    },
  },
});

export const {setVisible} = changeLanguageSlice.actions;

export default changeLanguageSlice.reducer;
